package com.xx.service;

import com.xx.api.tcc.TccOrderService;
import io.seata.rm.tcc.api.BusinessActionContext;
import lombok.extern.slf4j.Slf4j;

@Slf4j
@org.apache.dubbo.config.annotation.Service
@org.springframework.stereotype.Service
public class TccOrderServiceImpl implements TccOrderService {

    @Override
    public boolean ttry(BusinessActionContext context) {
        log.info("try....");
        return true;
    }

    @Override
    public boolean confirm(BusinessActionContext context) {
        log.info("confirm....");
        return true;
    }

    @Override
    public boolean cancel(BusinessActionContext context) {
        log.info("cancel....");
        return true;
    }
}
